//
//  JFNetworkingManager.h
//  JFTwxsd
//
//  Created by junfeiweiye on 2018/2/22.
//  Copyright © 2018年 junfeiweiyejiaoyujituan. All rights reserved.
//

#import <Foundation/Foundation.h>
/**
 *  网络请求类型
 */
typedef NS_ENUM(NSUInteger,HttpRequestType) {
    /**
     *  get请求
     */
    HttpRequestTypeGet = 1,
    /**
     *  post请求
     */
    HttpRequestTypePost = 2
};

@interface JFNetworkingManager : NSObject

+ (void)requestWithURLString:(NSString *)URLString
                  parameters:(id)parameters
                        type:(HttpRequestType)type
                        view:(UIView *)view
                     success:(void (^)(id responseObject))success
                     failure:(void (^)(NSError *error))failure;

@end
